#pragma once
#include <iostream>
#include <string>
#include <cstring>
#include <cerrno>
#include <cassert>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include<string.h>

using namespace std;
#define NAMED_PIPE "/tmp/mytest"

bool createFifo(const string& fifoPath)
{
    umask(0);
    mkfifo(fifoPath.c_str(),0666); 
}

void removeFifo(const string &path)
{
    int n = unlink(path.c_str());
}

